<?php
declare(strict_types=1);

namespace SixShop\AliyunWuliu;

use SixShop\AliyunWuliu\Entity\ExtensionWuLiuEntity;
use SixShop\AliyunWuliu\Service\LogisticsService;
use SixShop\Core\Contracts\LogisticsInterface;
use SixShop\Core\ExtensionAbstract;
use think\App;
use think\facade\Log;

class Extension extends ExtensionAbstract
{
    public const EXTENSION_ID = 'aliyun_wuliu';

    public function __construct(private App $app)
    {
    }

    protected function getBaseDir(): string
    {
        return dirname(__DIR__);
    }

    public function boot(): void
    {
        parent::boot();
        $this->app->bind(LogisticsInterface::class, LogisticsService::class);
    }
}
